* {
    margin: 0;
}
body {
    font-size: 1em;
    background-color: #BDC4CC;
}
.login {
    height: 500px;
    width: 500px;
    background-color: #2E3238;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    box-shadow: 1px 1px 8px #000;
    display: flex;
    align-items: center;
    flex-direction: column;
    align-content: flex-end;
    justify-content: center;
}
.title {
    margin-bottom: 100px;
    color: #FFF;
}
.username {
    margin-bottom: 20px;
    font-size: 1em;
}
.loginbutton {
    font-size: 1em;
}
.chatWindow {
    width: 520px;
    background-color: #EEE;
    margin-left: auto;
    margin-right: auto;
    margin-top: 50px;
    border: 1px #333 solid;
    box-shadow: 2px 2px 8px #000;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
}
.userListBox {
    color: #FFFFFF;
    background-color: #2E3238;
    min-width: 130px;
    max-width: 200px;
    border-right: 1px solid #555;
    padding: 5px;
}
.userList {
    padding-left: 0;
    height: 400px;
    list-style: none;
    overflow: auto;
}
.chatBox {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.chatBodyBox {
    background-color: #EEE;
    height: 370px;
    border-bottom: 1px solid #555;
    padding: 5px;
    overflow: auto;
}
.inputBox {
    position: relative;
    background-color: #EEE;
    height: 120px;
}
.inputText {
    border: 0;
    background-color: #EEE;
    padding:5px;
    resize: none;
    width:370px;
    height: 70px;
}
.inputText:focus {
    outline: none;
}
.msg {
    border-radius: 5px;
    max-width: 200px;
    padding: 5px 8px;
}
.self-msg {
    background-color: #B2E281;
}
.other-msg {
    background-color: #FFFFFF;
}
.self-message {
    float: right;
    clear: both;
    margin: 10px 0;
}
.other-message {
    float: left;
    clear: both;
    margin: 10px 0;
}
.sendbutton {
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 5em;
    height: 2em;
}
.closebutton {
    position: absolute;
    left: 5px;
    bottom: 5px;
    width: 5em;
    height: 2em;
}
.loginout-msg {
    font-style: italic;
    font-size: 0.8em;
    float: left;
    clear: both;
    margin: 5px 0;
}
@media only screen and (max-width: 768px) {
    .login {
        width: 100%;
        margin: 0;
    }
    .chatWindow {
        width: 100%;
        margin-top: 0;
    }
    .chatBox {
        height: 100%;
    }
    .userListBox {
        min-width: 80px;
        max-width: 200px;
    }
    .inputBox {
        position: fixed;
        left: 0;
        bottom: 0;
        height: 3em;
        width: 100%;
        background-color: #333;
    }
    .inputText {
        position: fixed;
        left: 16%;
        bottom: 0;
        padding:5px;
        resize: none;
        height: 30px;
        width: 60%;
        margin: 5px;
        border-radius: 5px;
    }
    .sendbutton {
        position: fixed;
        right: 0;
        bottom: 0;
        width: 15%;
        height: 3em;
        margin: 5px;
    }
    .closebutton {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 15%;
        height: 3em;
        margin: 5px;
    }
    .chatBodyBox {
        height: 400px;
    }
    
}